Plotly Python This code defines a function named random_bar_chart that accepts a dictionary as input, with the keys and values of the dictionary serving as the x-axis and y-axis data for the chart. The function uses the GraphObjects module from Plotly to create a bar chart and randomly generates data. Then, it updates the chart's layout and displays the chart. The type of code 2024-12-16 12:17:55 29 views
cryptography PBKDF2HMAC This code defines several encryption-related functions, including generating RSA key pairs, encrypting and decrypting messages, hashing passwords, and verifying passwords. The type of code 2024-12-16 12:17:15 13 views
Redis Python This function generates a list of random keys with a given prefix using Redis, and stores each key with its corresponding value in Redis. The type of code 2024-12-16 12:17:13 17 views
PyAMQP RabbitMQ This function uses the PyAMQP library to publish a message to a RabbitMQ queue. It accepts the exchange name, routing key, and message content as parameters. Python Function 2024-12-16 12:17:06 17 views
cryptography RSA This code defines a function that generates an RSA keypair with a specified number of bits. It first generates the private key, then generates the public key from the private key. Finally, it serializes the private and public keys to PEM format. The type of code 2024-12-16 12:16:33 14 views
RabbitMQ pika This function connects to a RabbitMQ server, declares a queue, binds it to a routing key, then generates a random queue ID and sends a message containing this ID to the queue. Function 2024-12-16 12:16:27 16 views
OAuthlib Python This code defines a function that uses the OAuthlib library to create a new OAuth 1.0a consumer key and secret. Users need to provide their own consumer key and secret. The type of code 2024-12-16 12:16:23 18 views
cryptography This function uses a private key to sign the data, generating a hash value for verifying the integrity and authenticity of the data. Encryption function 2024-12-16 12:16:16 14 views
Selenium library This function uses the Selenium library to randomly perform operations on a web page, such as clicking, typing, going back, forward, or refreshing. The function accepts a URL and an action type parameter and performs the corresponding web operation based on the action type. The type of code 2024-12-16 12:16:12 32 views
cryptography This function uses the cryptography library to sign the given data. It accepts a path to a PEM encoded private key file and the data to be signed as input, and returns the signature of the data. Encryption function 2024-12-16 12:16:03 13 views